package pl.streamsoft.currencyApp.services;

import java.util.Date;
import java.util.List;

import pl.streamsoft.currencyApp.model.Country;
import pl.streamsoft.currencyApp.model.Currency;


public interface IAppService {
	void addExistingCurrencyInDBToCountryByCodeAndDate(String currencyCode, Date date, String countryName);
	void addCurrencyToCountry(String countryName, Currency currency);
	void addNewCurrencyToDB(Currency currency);
	
	public List<Currency> getAllCurrenciesMatchesWord(String word);
	public List<Currency> getAllCurrenciesFromDateToDate(Date from, Date to);
	Country getCountry(String name);
	List<Currency> getAllCurrenciesOfCountry(String name);
	public List<Currency> getAllCurrenciesFromInterval(String from, String to);
	
	void addCountry(String name);
	public Currency getCurrencyFromDateByCode(Date date, String currencyCode);
	public List<Currency> getAllCurrenciesFromDateByType(Date date, char type);

	void deleteCurrencyFromCountry(String countryName, Currency currency);
	
}
